package com.quarantine.listener;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.quarantine.model.IdEntity;

/**
 * 含审计信息的Entity基类.
 */
@MappedSuperclass
public class AuditableEntity extends IdEntity {

	protected String inputBy;
	protected String inputTime;
	protected String editTime;

	
	/**
	 * 创建时间.
	 */
	// 本属性只在save时有效
	@Column(updatable = false)
	public String getInputTime() {
		return inputTime;
	}

	public void setInputTime(String inputTime) {
		this.inputTime = inputTime;
	}

	public String getInputBy() {
		return inputBy;
	}

	public void setInputBy(String inputBy) {
		this.inputBy = inputBy;
	}
	

	public String getEditTime() {
		return editTime;
	}

	public void setEditTime(String editTime) {
		this.editTime = editTime;
	}


}
